Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(console): Service Plans & Billing - Entitlement purchase integration #2432

Conversation

Cosmin-Parvulescu
Copy link
Contributor

@Cosmin-Parvulescu Cosmin-Parvulescu commented Jun 19, 2023

Description

  • Added new stripe related environment variables (these need to be set on the various environments);
  • Added stripe node library to console project;
  • Added stripe.ts file containing wrappers around the stripeClient
  • Added billing details endpoint that can be used to either generate a new clientID on first call or update name and e-mail on subsequent ones;
  • Added billing payment endpoint which can be visited to get redirected to the stripe deep linked customer portal so users can add new payment information;
  • Added webhook that can be used to process stripe events, currently processing: session creation / update (for entitlements) and customer update (for payment information);
  • Added danger pill;
  • Expanded account node with PaymentData;
  • Associated SubscriptionID to entitlements;
  • Removed pending service plan orders as operation is now more synchronous due to pre-registering payment information;

Related Issues

Testing

  • Added entitlements to account via Stripe test endpoints
  • Use StripeCLI to redirect requests to local webhook: stripe listen --forward-to localhost:10002/gnillib/webhook

Checklist

  • I have read the CONTRIBUTING guidelines
  • I have tested my code (manually and/or automated if applicable)
  • I have updated the documentation (if necessary)

@Cosmin-Parvulescu Cosmin-Parvulescu added the enhancement Indicates new feature requests label Jun 19, 2023
@Cosmin-Parvulescu Cosmin-Parvulescu self-assigned this Jun 19, 2023
@Cosmin-Parvulescu Cosmin-Parvulescu changed the base branch from main to feat/console/billing-&-invoicing-purchasing-entitlement-frame June 19, 2023 08:06
@Cosmin-Parvulescu Cosmin-Parvulescu force-pushed the feat/console/billing-&-invoicing-purchasing-entitlement-frame branch from 4c2e76e to 2bd6e81 Compare June 19, 2023 13:09
Base automatically changed from feat/console/billing-&-invoicing-purchasing-entitlement-frame to main June 19, 2023 14:27
@Cosmin-Parvulescu Cosmin-Parvulescu force-pushed the feat/console/service-plans-&-billing-entitlement-purchase-integration branch 3 times, most recently from 90902bc to c476020 Compare June 22, 2023 08:34
@Cosmin-Parvulescu Cosmin-Parvulescu force-pushed the feat/console/service-plans-&-billing-entitlement-purchase-integration branch from 1b28f62 to 6f9d734 Compare June 22, 2023 14:46
@Cosmin-Parvulescu Cosmin-Parvulescu marked this pull request as ready for review June 22, 2023 14:57
@maurerbot maurerbot merged commit 90f740f into main Jun 22, 2023
12 checks passed
@maurerbot maurerbot deleted the feat/console/service-plans-&-billing-entitlement-purchase-integration branch June 22, 2023 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Indicates new feature requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(console): Service Plans & Billing - Entitlement purchase integration
2 participants